/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconCheckRectangle: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M800 128a96 96 0 0 1 96 96v576a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V224a96 96 0 0 1 96-96z m0 64H224a32 32 0 0 0-32 32v576a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V224a32 32 0 0 0-32-32z m-73.376 169.376a32 32 0 0 1 2.656 42.24l-2.656 3.008-256 255.904a32 32 0 0 1-42.24 2.656l-3.008-2.656-128-127.904a32 32 0 0 1 42.24-47.936l3.008 2.688 105.344 105.28 233.408-233.28a32 32 0 0 1 45.248 0z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconCheckRectangle.defaultProps = {
  size: 18,
};

export default IconCheckRectangle;
